<?php
/* @var $this CriteriaController */
/* @var $model Criteria */

 $this->breadcrumbs=array(
 	'Criterias'=>array('index'),
 	'Create',
 );


$this->menu=array(
	array('label'=>'List Criteria', 'url'=>array('index', 'id'=>$model->list_id)),
	array('label'=>'Manage Criteria', 'url'=>array('admin', 'id'=>$model->list_id)),
);

// $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
//     'id'=>'createCriteria',
//     // additional javascript options for the dialog plugin
//     'options'=>array(
//         'title'=>'Create Criteria',
//         'autoOpen'=>false,
//     ),
// ));

echo $this->renderPartial('_form', array('model'=>$model));

// $this->endWidget('zii.widgets.jui.CJuiDialog');

// the link that may open the dialog
// echo CHtml::link('open dialog', '#', array(
//    'onclick'=>'$("#createCriteria").dialog("open"); return false;',
// ));

?>